﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SSE657.BahMap.Common
{
    public static class MathHelper
    {
        public static double CalculatePercentile(double min, double max, double value)
        {
            double diff = max - min;
            double position = value - min;
            return position / diff;
        }
    }
}
